/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package omsalonsystem.ws.Entity;

import java.io.Serializable;
import java.sql.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 *
 * @author brsolucoes.lmolinari
 */
@Entity
public class EntityOM implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private String name;
    private Date signingDate;
    
    public EntityOM(){
        
    }
    
    public EntityOM(String name){
        this.name = name;
        this.signingDate = new Date(System.currentTimeMillis());
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
         return name + " (signed on " + signingDate + ")";
    }
    
}
